#ifndef __SERIAL_H
#define __SERIAL_H

uint8_t Serial_Contact(void);//判断包头
void receive_Target_Data();    
void receive_Mode_Data();
void receive_PID_Data();
void send_Motor_Data(float M0_angle,float M0_speed,float M1_angle,float M1_speed);

struct SF_Serial_DATA {
  float M0_Target;
  float M1_Target;

  float M0_Mode;
  float M1_Mode;

  float M0_P;
  float M0_I;
  float M0_D;
  float M1_P;
  float M1_I;
  float M1_D;

  float M0_angle;
  float M0_speed;
  float M1_angle;
  float M1_speed;
};


SF_Serial_DATA Serial_Data(void);
#endif



